<%@ page import="user.Model.entity.user" %><%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2023/2/1
  Time: 17:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户信息修改</title>
</head>
<body>
<%
    //这部分最上面的session来自于登录部分
    //在修改完之后再servlet中会删除这个nowUser并存入新的书籍
    session.setAttribute("nowUser",new user("王铭杰","123456","1502806050@qq.com","18734505818","王铭杰","Java","七期"));
    user nowUser = (user)session.getAttribute("nowUser");
%>
<form action="./userInformationServlet" method="post">
    <p>  用户名：    <input type="text" name="username" value="${nowUser.userName}">     </p>
    <p>  密码：     <input type="text" name="password" value="${nowUser.password}">     </p>
    <p>  邮箱：   <input type="text" name="postbox" value="${nowUser.postbox}">     </p>
    <p>  电话号码：   <input type="text" name="phoneNumber" value="${nowUser.phoneNumber}">     </p>
    <p>  姓名：   <input type="text" name="name" value="${nowUser.name}">     </p>
    <p> 方向：<select name="direction">
        <option value="${nowUser.direction}" selected>${nowUser.direction}</option>
        <option value="秘书处">秘书处</option>
        <option value="设计">设计</option>
        <option value="java">Java</option>
        <option value="CPU&OS">CPU&OS</option>
        <option value="python">Python</option>
        <option value="全栈">全栈</option>
    </select>
    </p>
    <p> 期数：<select name="phase">方向：
        <option value="${nowUser.phase}">${nowUser.phase}</option>
        <option value="五期">五期</option>
        <option value="六期">六期</option>
        <option value="七期">七期</option>
    </select>
    </p>
    <p> <input type="submit"> </p>

</form>
</body>
</html>
